﻿/*
 * Created by SharpDevelop.
 * User: Masy Freddy
 * Date: 20/09/2011
 * Time: 12:29
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.AddIn.Pipeline;
using MetaVideoEditorEvolved.AddIn.Contracts;
using MetaVideoEditorEvolved.AddIn.HostViews;

namespace MetaVideoEditorEvolved.AddIn.HostAdapters
{
	/// <summary>
	/// Description of ReaderView.
	/// </summary>
	[HostAdapter]
	public class ReaderAdapter : ReaderView
	{
		private Contracts.IReaderContract readerContract;
		private System.AddIn.Pipeline.ContractHandle handle;
		
		public ReaderAdapter(IReaderContract readerContract)
		{
			this.readerContract = readerContract;
			
			handle = new ContractHandle(readerContract);
		}
				
		public override MetaVideoEditorEvolved.AddIn.Entity.Episode ReadEpisode(string mediaLocation)
		{
			return this.readerContract.ReadEpisode(mediaLocation);
		}
		
		public override MetaVideoEditorEvolved.AddIn.Entity.Movie ReadMovie(string mediaLocation)
		{
			return this.readerContract.ReadMovie(mediaLocation);
		}
		
		public override MetaVideoEditorEvolved.AddIn.Entity.Season ReadSeason(string mediaLocation)
		{
			return this.readerContract.ReadSeason(mediaLocation);
		}
		
		public override MetaVideoEditorEvolved.AddIn.Entity.Serie ReadSerie(string mediaLocation)
		{
			return this.readerContract.ReadSerie(mediaLocation);
		}
		
		public override void ShowOption()
		{
			this.readerContract.ShowOption();
		}
		
		public override bool HasOption()
		{
			return this.readerContract.HasOption();
		}
	}
}
